Earthquake resistent building